package tests;

import static org.junit.Assert.*;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import fallingGame.PlayerScore;

public class PlayerScoreTest {

	private static PlayerScore testScore;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		testScore = new PlayerScore();
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
		testScore = null;
	}

	@Test
	public final void testAdd() {

		assertEquals(testScore.getTask().getPlayerScore(), 1);

		testScore.add(1);
		assertEquals(testScore.getTask().getPlayerScore(), 2);

		testScore.add(1);
		assertEquals(testScore.getTask().getPlayerScore(), 3);
	}

}
